<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <title>Food Favorites</title>
</head>
<body>
<div th:fragment="myList">
<!-- 标题 -->
<h2>Food Favorites</h2>
<h4>Shop for your favorite food here.</h4>

<!-- 收藏列表 -->
<ul>
  <li th:each="product : ${itemList}">
    <a th:href="@{/catalog/viewItem(itemId=${product.itemId})}" th:text="${product.productName}">Product Name</a>
    (<span th:text="${product.itemId}"></span>)
  </li>
</ul>
</div>
</body>
</html>